home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
obsolete
/
prompt.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
924b
|
36 lines
; $Id: prompt.pro,v 1.2 1997/01/15 04:02:19 ali Exp $
;
; Copyright (c) 1990-1997, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
pro PROMPT, String
;+
; NAME:
; PROMPT
;
; PURPOSE:
; PROMPT sets the interactive prompt, normally "IDL>", to the
; specified string. If no parameter is supplied, the prompt string
; reverts to "IDL>". This procedure was built-in under version 1 VMS
; IDL, and is provided in this form to help users of that version
; adapt to version 2.
;
; CALLING SEQUENCE:
; PROMPT [, String]
;
; OPTIONAL INPUT:
; String: A scalar string giving the new prompt.
;
; OUTPUT:
; The interactive prompt (controlled by the !PROMPT system variable)
; is changed.
;
; RESTRICTIONS: None
;
; REVISION HISTORY:
; 10 January 1990
;-
on_error,2 ;Return to caller if an error occurs
if n_params() eq 0 then !prompt = 'IDL> ' else !prompt = string
end